<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./lib/jquery.js"></script>
</head>

<body>
    <script>
        function success(data) {
            console.log(data);

        }
    </script>


    <script src="./js/getdata.js?callback=success"></script>

    <!--  
     <script>
        success({
            name: 'zs',
            age: 18
        })
    </script>
    这样是可以调用的
    -->
</body>

</html>